﻿@model IEnumerable<Innova.Entites.PATROCINADOR>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <ul data-role="listview" data-inset="true">
        <li data-role="list-divider">Criterio de Búqueda</li>
        <li data-role="fieldcontain">
            @Html.TextBox("criterio", null, new { type="text", placeholder= "Ingrese Criterio" } ) 
            <br /><pre></pre>
            <input type="submit" name="Buscar" data-icon="search" value="Buscar" />
        </li>
    </ul>    
}
    
<ul data-role="listview" data-inset="true" >
    @foreach (var item in Model) 
    {
        <li>
            <a href="@Url.Action("Index", "Servicio", new { idPatro = item.Id})">
                    <img src="@Url.Action("GetFotoPatrocinador","Patrocinador",new { id = item.Id })" \>
					<h3>@Html.DisplayFor(modelItem => item.RazonSocial)</h3>
		    </a>
        </li>
    }
</ul>

 <p>
    <a href="@Url.Action("Index", "Categoria")">
                <img src="@Url.Content("~/Content/images/arrow-back.png")" title="Atras" /></a> 
</p>   

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}